home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / scooby_d.swf / scripts / __Packages / com / ndimedia / ui / SimpleButton.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  557 b   |  20 lines

  1. class com.ndimedia.ui.SimpleButton extends com.ndimedia.ui.AbstractButton
  2. {
  3.    var addEventListener;
  4.    var m_namespace = "SimpleButton";
  5.    function SimpleButton(scope)
  6.    {
  7.       super(scope,true);
  8.       this.setSize(50,30);
  9.    }
  10.    function addOnReleaseCommand(command)
  11.    {
  12.       var eb = com.ndimedia.events.EventBroadcaster.getInstance();
  13.       this.addEventListener(com.ndimedia.events.MouseEventType.MOUSE_RELEASE,function()
  14.       {
  15.          eb.broadcastEvent(new com.ndimedia.events.Event(command,this));
  16.       }
  17.       );
  18.    }
  19. }
  20.